/**
 * 14/02/2014
 * 
 * StateBO
 */
package org.cuatrovientos.erp.business;

import java.util.List;

import org.cuatrovientos.erp.dao.ProductTypeDAOInterface;
import org.cuatrovientos.erp.dao.RoleDAOInterface;
import org.cuatrovientos.erp.dao.StateDAOInterface;
import org.cuatrovientos.erp.model.ProductType;
import org.cuatrovientos.erp.model.Role;
import org.cuatrovientos.erp.model.State;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Holds all the business logic for Role related management
 * @author Inaki Torres
 */
public class ProductTypeBO implements ProductTypeBOInterface {

	@Autowired
	private ProductTypeDAOInterface productTypeDAO;

	@Override
	public ProductType selectById(int id) {
		return productTypeDAO.selectById(id);
	}

	@Override
	public List<ProductType> selectAll() {
		return productTypeDAO.selectAll();
	}

	@Override
	public List<ProductType> search(String description) {
		return productTypeDAO.search(description);
	}

	@Override
	public void deleteById(int id) {
		productTypeDAO.deleteById(id);
	}

	@Override
	public void insert(ProductType productType) {
		productTypeDAO.insert(productType);
	}

	@Override
	public void update(ProductType productType) {
		productTypeDAO.update(productType);
	}

	
	
}
